
<template>
  <div id="info-template">
    <el-container>
      <div class="content">
        <router-view></router-view>
      </div>
    </el-container>
  </div>
</template>

<script>
import mySearch from '../../search.js'
export default {
  name: 'InfoTemplate',
  data () {
    return {
      searchInput: ''
    }
  },
  methods: {
    goHome () {
      this.$router.push({ name: 'home' })
    },
    search () {
      mySearch.searchAndGo(this.searchInput)
    }
  }
}
</script>

<style lang="scss" scoped>
#info-template {
  .el-header {
    box-shadow: 0 1px 10px rgba(151, 164, 175, 0.1);
    .header {
      padding-top: 1rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .logo {
        color: #0071F4;
      }
      .right-area {
        display: flex;
        justify-content: right;
        .searchbar-in-header {
          margin-left: 2rem;
          width: 100%;
        }
      }
    }
  }
  .content {
    width: 100%;
  }
}
</style>
